ABC155 C - Poll
https://atcoder.jp/contests/abc155/tasks/abc155_c
提出
code: python
n = int(input())
s =
input() for _ in range(n)
strings = {}
for i in s:
if (i in strings):
strings
i
+= 1
else:
strings
i
= 1
sort_str = sorted(strings.items(), key=lambda x:(-x
1
, x
0
))
max_num = sort_str
0
1
for i in sort_str:
if (i
1
== max_num):
print(i
0
)
else:
break